<?php
/**
 * Created by JetBrains PhpStorm.
 * User: cgp
 * Date: 13-11-5
 * Time: 上午9:40
 * 一周产品变化汇总
 */
use pft\notice;
include 'autoload.php';
$notice = new notice();
if (!$_SESSION['memberID']) {
    exit("暂时没有通知");
}
$params = array(
    'adminid'=>$_SESSION['memberID'],
    'limit'  => 0,//分页起始位置
    'offset' => 10,//条数
);
$notice_list = $notice->GetNoticeList(notice::RECIVE, $params);
$list_html = '';
if(count($notice_list)>1) {
    foreach($notice_list as $list){
        $list_html .= "<li><a href='noticed.html?id={$list['id']}'>[".date('m-d', strtotime($list['btime']))."]{$list['title']}</a></li>";
    }
}
else {
    $list_html = "暂时没有通知";
}
echo $list_html;
?>
